//
//  JSReaderBook.h
//  NiubilityProject
//
//  Created by Apple on 2018/5/24.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
@class JSReaderChapter;
@interface JSReaderBook : NSObject

@property (nonatomic, assign) NSInteger bookId;     // 书本id
@property (nonatomic, strong) NSString *bookName;   // 书本名
@property (nonatomic, assign) NSInteger totalChapter; // 书本章节
@property (nonatomic, assign) NSInteger curChpaterIndex; // 当前章节

// 是否有下章节
- (BOOL)haveNextChapter;

// 是否有上章节
- (BOOL)havePreChapter;

// 重置章节
- (void)resetChapter:(JSReaderChapter *)chapter;

// 获取书籍的章节
- (JSReaderChapter *)openBookWithChapter:(NSInteger)chapterIndex;

- (JSReaderChapter *)openBookNextChapter;

- (JSReaderChapter *)openBookPreChapter;

@end
